<%@page contentType="application/json; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="org.team.sdsc.datamodel.*" %>

<%
     Network network = NetworkFactory.newInstance();
     List<Person> persons = network.getPersons();
     network.close();

     out.println("{ results: [");
     int k = 0;
     for (Person person : persons ) {
	if (k > 0) out.println("      ,");
	out.println("  {  id: "+person.getId()+", name: '"+person.getFirstName()+" "+person.getLastName()+"' }" ); 
	k++;
     }
     out.println("]}");
%>



